def list_while(data):
    index = 0
    while index < len(data):
        element = data[index]
        print(f"list元素:{element}")
        index += 1

def list_for(data):
    for element in data:
        print(f"list元素:{element}")

my_list = ["熊猫", "老虎", "狮子", "熊猫"]
# list_while(my_list)
list_for(my_list)
